package com.zhang.zhangapp.view.custom;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zhang.zhangapp.R;

/**
 * Created by Administrator on 2018/4/25.
 */

public class TableItemLayout extends LinearLayout {
    private TextView lable;
    private TextView textView;
    private String title;
    private String value;
    private Context context;

    public TableItemLayout(Context context, String title, String value) {
        super(context);
        this.title = title;
        this.value = value;
        initView();
    }

    private void initView() {
        LayoutInflater.from(context).inflate(R.layout.z_table_layout, this);
        lable = (TextView) this.findViewById(R.id.lable_title);
        textView = (TextView) this.findViewById(R.id.value_text);
        lable.setText(title);
        textView.setText(value);
    }
}
